package com.phoenix.mapper;

import com.phoenix.entity.GroupMember;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface GroupMemberMapper {
    List<GroupMember> selectNSearch(Map<String, Object> search);

    Boolean addGroupMember(GroupMember groupMember);

    Boolean deleteGroupMember(Integer groupID);

    Boolean updateGroupMember(GroupMember groupMember);

    Boolean deleteGroupMemberByList(List<String> idList);

    GroupMember selectGroupByID(String groupID);

    List<Integer> selectMemberIDByUserId(Integer userID);

    List<GroupMember> adminSelectNSearch(Map<String, Object> search);

    String selectOrgNameByInfoID(Integer groupID);
}
